package 单例;

import com.alibaba.fastjson.JSONObject;

public class Stu2 {

    private String name;

    private int age;


    private String addr;


    public Stu2 setName(String name) {
        this.name = name;

        return this;
    }
    public Stu2 setAge(int age) {
        this.age = age;
        return this;
    }
    public Stu2 setAddr(String addr) {
        this.addr = addr;
        System.out.println(JSONObject.toJSONString(this));
        return this;
    }






    public int getAge() {
        return age;
    }



    public String getAddr() {
        return addr;
    }



    /**
     * set and get
     */
    public String getName() {
        return name;
    }

}
